/*
 * @Description: 通用API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2024-04-28 16:58:27
 */
import http from '@/utils/http/axios'

export function getLoginParam(params) {
  return http.request({
    url: '/sign/getLoginParam',
    method: 'GET',
    params
  })
}
export function getWorkplace(params) {
  return http.request({
    url: '/dashboard/workplace',
    method: 'GET',
    params
  })
}
export function getFeedbackCount(params) {
  return http.request({
    url: '/dashboard/feedback_count',
    method: 'GET',
    params
  })
}
export function getRcCount(params) {
  return http.request({
    url: '/dashboard/rc_count',
    method: 'GET',
    params
  })
}
export function deleteFileCommon(params) {
  return http.request(
    {
      url: '/common/deleteFileCommon',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function pushErrorLog(params) {
  return http.request(
    {
      url:
        'https://21ds.cn/log/push_v2?ignore_rand_str=' + Math.random().toString(36).substring(2, 8),
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
